<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>{$title}列表</h3></div>
                <div class="fr">
                    <form class="search-form" method="post" action="">
                        <span>查询条件:</span>
                        <select name="field">
                            <option value="no" <if condition="$filter.field eq 'no'">selected="selected"</if>>申请编号</option>
                            <option value="name" <if condition="$filter.field eq 'name'">selected="selected"</if>>姓名</option>
                            <option value="idno" <if condition="$filter.field eq 'idno'">selected="selected"</if>>身份证号</option>
                            <option value="phone" <if condition="$filter.field eq 'phone'">selected="selected"</if>>家庭移动电话</option>
                        </select>
                        <input name="value" value="{$filter.value}" type="text" placeholder="输入关键字按回车" />
                        <input name="state" value="{$filter.state}" type="hidden" />
                        <input name="page" value="{$filter.page}" type="hidden" />
                        <input name="order_field" value="{$filter.order_field}" type="hidden" />
                        <input name="order_sort" value="{$filter.order_sort}" type="hidden" />
                        <input name="where" value='{$filter.where}' type="hidden" />
                        <button class="btn-normal" type="submit">查 询</button>
                    </form>
                </div>
            </div>
            <div class="line2">
                <div class="fl form-btn-group">
                    <button disabled="disabled" onclick="location.href='/admin/gzf/add'" class="btn-create btn-disable">新 建</button>
                </div>
                <div class="fl form-btn-more">
                    <button class="btn-normal btn-more">更多操作<i class="drop-down"></i></button>
                    <ul class="more-action hidden">
                        <if condition="$filter.state eq 'submit'">
                            <in name="$x|default='01-02-10'" value="$rightsCode">
                                <li><a onclick="action_del();" href="javascript:void(0);">删 除</a></li>
                            </in>
                        </if>
                        <if condition="$filter.state eq 'pass3'">
                            <li><a onclick="action_export('gsmd');" href="javascript:void(0)">导出公示名单</a></li>
                        </if>
                        <if condition="$filter.state eq 'pass4'">
                            <li><a onclick="action_export('yhmd');" href="javascript:void(0)">导出摇号名单</a></li>
                        </if>
                    </ul>
                </div>
                <div class="fr form-search-count">
                    <span class="offset">({$page.from}-{$page.to})</span>
                    <span class="total">共{$page.total}条</span>
                    <button onclick="PageJump({$page.prevPage});" class="btn-normal">上一页</button>
                    <button onclick="PageJump({$page.nextPage});" class="btn-normal">下一页</button>
                </div>
            </div>
        </div>
    </div>
    <div class="scroll-box" style="z-index:-1;">
        <div class="scroll-table">
            <!--If you don't need header background color you don't need this div.-->
            <div class="header-hack"></div>
            <div class="thead">
                <div class="thead-line">
                    <div class="checkbox"><input name="select-all" type="checkbox" />&nbsp;</div>
                    <div class="list-header" sort="{$filter.order_sort}" field="no">
                        申请编号<if condition="$filter.order_field eq 'no'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div field="state">申请状态</div>
                    <div class="list-header" sort="{$filter.order_sort}" field="name">
                        姓名<if condition="$filter.order_field eq 'name'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="idno">
                        身份证号<if condition="$filter.order_field eq 'idno'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <if condition="$filter.state eq 'done'">
                        <div field="house"><span>房源编号</span></div>
                        <div field="contact"><span>合同编号</span></div>
                    </if>
                    <div field="marriage"><span>婚姻状况</span></div>
                    <div field="gender"><span>性别</span></div>
                    <div field="area_id"><span>所在社区和党委口</span></div>
                    <div field="community_id"><span>意向申请小区</span></div>
                    <div field="resident_num"><span>常住人口</span></div>
                    <div field="coapply_num"><span>共同申请人口</span></div>
                    <div field="phone"><span>移动电话</span></div>
                    <div field="company"><span>工作单位</span></div>
                    <div field="work_date"><span>参加工作时间</span></div>
                    <div field="work_state"><span>工作现状</span></div>
                    <div field="house_state"><span>住房</span></div>
                    <div field="pay_shebao"><span>社会保险缴纳情况</span></div>
                    <div field="applier_type"><span>申请人类型</span></div>
                    <div class="list-header" sort="{$filter.order_sort}" field="gxincome">
                        工薪月收入<if condition="$filter.order_field eq 'gxincome'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="ccincome">
                        财产性月收入<if condition="$filter.order_field eq 'ccincome'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="income">
                        共计月收入<if condition="$filter.order_field eq 'income'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="gxincome2">
                        家庭工薪月收入<if condition="$filter.order_field eq 'gxincome2'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="ccincome2">
                        家庭财产性月收入<if condition="$filter.order_field eq 'ccincome2'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="income2">
                        家庭共计月收入<if condition="$filter.order_field eq 'income2'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div class="list-header" sort="{$filter.order_sort}" field="stime">
                        申请时间<if condition="$filter.order_field eq 'stime'"><i class="icon-{$filter.order_sort}"></i></if>
                    </div>
                    <div field="remarks"><span>备注</span></div>
                </div>
            </div>
            <div class="tbody">
                <volist name="list" id="vo" key="index">
                    <if condition='($filter.state eq accept) and ($vo.lhsp eq 1)'>
                        <div class="tbody-line highlight" offset="{$vo.offset}" data-id="{$vo.id}">
                    <else/>
                        <div class="tbody-line" offset="{$vo.offset}" data-id="{$vo.id}">
                    </if>
                        <div class="checkbox"><input name="checkbox" data-id="{$vo.id}" type="checkbox" />&nbsp;</div>
                        <div field="no">{$vo.no}</div>
                        <div field="state">{$status[$vo[state]]}</div>
                        <div field="name">{$vo.name}</div>
                        <div field="idno">{$vo.idno}</div>
                        <if condition="$filter.state eq 'done'">
                            <div field="house">{$vo.house|default="未分配房源"}</div>
                            <div field="contact">{$vo.contact|default="未签订合同"}</div>
                        </if>
                        <div field="marriage">{$vo.marriage}</div>
                        <div field="gender">{$vo.gender}</div>
                        <div field="area_id">{$area[$vo[area_id]]}</div>
                        <div field="community_id">{$community[$vo[community_id]]}</div>
                        <div field="resident_num">{$vo.resident_num}</div>
                        <div field="coapply_num">{$vo.coapply_num}</div>
                        <div field="phone">{$vo.phone}</div>
                        <div field="company">{$vo.company}</div>
                        <div field="work_date">{$vo.work_date}</div>
                        <div field="work_state">{$vo.work_state}</div>
                        <div field="house_state">{$vo.house_state}</div>
                        <div field="pay_shebao">{$vo.pay_shebao}</div>
                        <div field="applier_type">{$vo.applier_type}</div>
                        <div class="tr" field="gxincome">{$vo.gxincome}</div>
                        <div class="tr" field="ccincome">{$vo.ccincome}</div>
                        <div class="tr" field="income">{$vo.income}</div>
                        <div class="tr" field="gxincome2">{$vo.gxincome2}</div>
                        <div class="tr" field="ccincome2">{$vo.ccincome2}</div>
                        <div class="tr" field="income2">{$vo.income2}</div>
                        <div field="stime">{$vo.stime|date="Y/m/d",###}</div>
                        <div class="tl" field="remarks">{$vo.remarks}</div>
                    </div>
                </volist>
            </div>
        </div>
    </div>
</div>
<script>
    $(".scroll-table .tbody").scroll(function(){
        $(".scroll-table .thead").scrollLeft($(this).scrollLeft());
    });
</script>
<script src="__JS__/gzf.js?v=0.2" type="text/javascript" ></script>
<include file="Public:footer" />

